#include <stdio.h>
#include "matrix.h"

static int find(int row,int col,const Matrix a[])
{
	int i;
	for(i = 1;i <= a[0].value;i++){
		if (COMPARE(row,a[i].row) == EQUAL)
			if (COMPARE(col,a[i].col) == EQUAL){
				return i;
			}
		continue;
	}
	return 0;
}

void show(const Matrix a[])
{
	int row = a[0].row;
	int col = a[0].col;
	int i,j;
	int index;
	for (i = 0;i < row;i++){
		for(j = 0;j < col;j++){
			if ((index = find(i,j,a)) != 0 ){
				printf("%-3d ",a[index].value);
			}
			else{
				printf("%-3d ",0);
			}
		}
		printf("\n");
	}
}

BOOL transpose(const Matrix a[],Matrix b[])
{

	return 0;
}

